package com.fy.consumer.feign;


import com.fy.consumer.vo.TravelOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Component
@FeignClient(name = "domain-order")
public interface ConsumerOrderFeignService {

    @GetMapping(value = "/orderFindByConsumerId")
    List<TravelOrderVo> orderFindByConsumerId(Integer consumerId, String type);

    @GetMapping(value = "/travelOrderFindByTravelOrderId")
    TravelOrderVo travelOrderFindByTravelOrderId(Integer travelOrderId);

    @PostMapping(value = "/updateTravelOrder")
    TravelOrderVo updateTravelOrder(int orderId, int type);
}
